package cn.kgc.jdktest.demo9;

import java.util.function.Function;

/**
 * @Author:yaozhaobao
 * @Description:TODO
 * @version:1.0
 */
public class Test {


    public static void main(String[] args) {
        fun(t->Integer.parseInt(t));

        fun(Integer::parseInt);

        fun(t->Integer.parseInt(t)*2);

    }



    public  static  void fun(Function<String,Integer> function){
        System.out.println(function.apply("100")+200);;
    }
}
